package com.hertz.alarm.service;

import java.util.List;

import com.hertz.alarm.entity.IrisNbaAlarm;
import com.hertz.alarm.entity.IrisUser;
import com.hertz.alarm.entity.MatchNba;

public interface IrisNbaAlarmService {

	public boolean save(IrisNbaAlarm irisNbaAlarm);
	
	public boolean update(IrisNbaAlarm fromDb,IrisNbaAlarm irisNbaAlarm);

	public IrisNbaAlarm getById(long id);
	@Deprecated
	public List<IrisNbaAlarm> getsById(String aids);
	/*
	 * unalarm 
	 */
	public List<IrisNbaAlarm> listBy(long uid,String ymd);
	public List<IrisNbaAlarm> listAllFromMtimeFromDb(String ymd);
	public IrisNbaAlarm getBy(long uid,long mid);
	
	public boolean isAlarm(long mid,IrisNbaAlarm irisNbaAlarm);
	public boolean isALarm(IrisNbaAlarm irisNbaAlarm);
	public boolean isALarm(MatchNba matchNba,IrisNbaAlarm irisNbaAlarm);
//	public void cancel(IrisNbaAlarm irisNbaAlarm);
	public void cancel(long aid);
//	public List<MatchNba> isAlarm(String uuid);
//	public List<MatchNba> isAlarm(IrisUser irisUser);
//	public MatchNba isAlarm(IrisUser irisUser,IrisNbaAlarm irisNbaAlarm);
	
}
